package com.dabaozhan.modules.wx_app.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.dabaozhan.modules.wx_app.entity.QueryListBaseEntity;
import com.dabaozhan.modules.wx_app.entity.RiskEntity;

@Mapper
public interface RiskMapper {
	
	public RiskEntity getRisk(RiskEntity entity);
	
	public List<RiskEntity> getRiskList(QueryListBaseEntity entity);
	
	public long getRiskCount(QueryListBaseEntity entity);
	
	public int addRisk(RiskEntity entity);
	
	public int deleteRisk(RiskEntity entity);
	
	public RiskEntity getRiskWaring(@Param("userId")String userId,@Param("parentId")String parentId, @Param("categoryId")String categoryId);
}
